package com.coderknock.homework.demo.controller;

import com.coderknock.homework.demo.service.DemoService;
import com.coderknock.homework.ioc.annotation.Autowired;
import com.coderknock.homework.ioc.annotation.Controller;
import com.coderknock.homework.ioc.annotation.IgnoreLog;

/**
 * <p></p>
 *
 * @author 三产
 * @version 1.0
 * @date 2017-06-21
 * @QQGroup 213732117
 * @website http://www.coderknock.com
 * @copyright Copyright 2017 拿客 coderknock.com  All rights reserved.
 * @since JDK 1.8
 */
@Controller
public class DemoController {

    @Autowired
    DemoService demoService;

    public void test() {
        System.out.println("DemoController.test");
        demoService.test();
    }

    @IgnoreLog
    public void IgnoreLog() {
        System.out.println("DemoController.IgnoreLog");
        demoService.notIgnoreLog();
    }
}
